package com.ykzb.base.service.impl;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykzb.base.dao.BaseDao;
import com.ykzb.base.service.BaseService;
import com.ykzb.user.model.User;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public class BaseServiceImpl<T, E> implements BaseService<T, E>{
	
	protected Log log = LogFactory.getLog(this.getClass().getName());

	@Override
	public User getLoginUser(HttpServletRequest request) {
		User user = (User) request.getSession().getAttribute("user");
		return user;
	}


}
